/*
 * @Author: dingyuwen ding_yuwen@163.com
 * @Date: 2023-01-09 16:08:44
 * @LastEditTime: 2023-08-01 00:01:42
 * @LastEditors: DingYuwen 43669762+DingYuwen@users.noreply.github.com
 * @Description:
 */
import { lStorage } from '@/common/utils';

const TOKEN_CODE = 'access_token';
const DURATION = 6 * 60 * 60;

export function getToken() {
  return lStorage.get(TOKEN_CODE);
}

export function setToken(token: string) {
  lStorage.set(TOKEN_CODE, token, DURATION);
}

export function removeToken() {
  lStorage.remove(TOKEN_CODE);
}
